package com.yykj.prescription.server.controller;

import com.yykj.common.vo.ResultVO;
import com.yykj.prescription.client.dto.PrescriptionCheckDTO;
import com.yykj.prescription.server.service.PrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/prescription")
public class PrescriptionCheckController {

    @PostMapping("/user/check")
    public ResultVO checkPrescription(@RequestBody PrescriptionCheckDTO checkDTO){
        prescriptionService.userCheckPrescription(checkDTO);
        return ResultVO.success();
    }

    private PrescriptionService prescriptionService;

    @Autowired
    public void setPrescriptionService(PrescriptionService prescriptionService) {
        this.prescriptionService = prescriptionService;
    }



}
